package com.heima.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.admin.mapper.AdminWmNewsMapper;
import com.heima.admin.service.AdminWmNewsService;
import com.heima.apis.wemedia.IWemediaClient;
import com.heima.model.admin.dtos.NewsAuthDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminWmNewsServiceImpl extends ServiceImpl<AdminWmNewsMapper, NewsAuthDto> implements AdminWmNewsService {
    @Autowired

    private IWemediaClient wemediaClient;

    @Override
    public ResponseResult authFail(NewsAuthDto dto) {
        return wemediaClient.authFail(dto);

    }

    @Override
    public ResponseResult authPass(NewsAuthDto dto) {
        return wemediaClient.authPass(dto);

    }
}
